﻿<UserControl x:Class="Chapters.Chapter13.EffectMappingExample"
						 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
						 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
						 xmlns:Chapter13="clr-namespace:FSharp.Chapter13;assembly=FSharpLibrary">
	<DockPanel>
		<StackPanel DockPanel.Dock="Left"
								Width="200">
			<TextBlock Text="{Binding Value, ElementName=_left, StringFormat=Left: {0:F2}}" />
					<Slider x:Name="_left"
									Minimum="0"
									Maximum="1"
									Value="0.25"
									SmallChange="0.1" />
					<TextBlock Margin="0,10,0,0"
										 Text="{Binding Value, ElementName=_right, StringFormat=Right: {0:F2}}" />
					<Slider x:Name="_right"
									Minimum="0"
									Maximum="1"
									Value="0.75"
									SmallChange="0.1" />
				</StackPanel>
		<Decorator x:Name="_buttonParent">
			<Button x:Name="_button"
							Content="Testing SqueezeEffect + EffectMapping"
							FontSize="24">
				<Button.Effect>
					<Chapter13:SqueezeEffect Left="{Binding Value, ElementName=_left}"
																	 Right="{Binding Value, ElementName=_right}" />
				</Button.Effect>
			</Button>
		</Decorator>
	</DockPanel>
</UserControl>
